package com.结构型模式.桥接模式.实例;

/**做一个颜色和不同款式的包包的组合
 * 这种模式隐藏了构建对象过程。符合封装
 * @author chenhs
 * @date 2020/10/16
 */
public class Test {
	public static void main(String[] args) {
		Knapsack knapsack = new Knapsack(new Red());
		knapsack.spaek();
		Handbag handbag = new Handbag(new Green());
		handbag.spaek();
		Handbag handbag2 = new Handbag(new Red());
		handbag2.spaek();
	}
}
